package com.jeecms.wicool.dao.user;

import java.util.List;

import com.jeecms.cms.entity.main.CmsUser;
import com.jeecms.common.hibernate3.Updater;
import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.entity.user.UserAccount;

/**
 * 会员卡DAO接口
 */
public interface UserAccountDao {
	public Pagination getPage(Integer shopId, String userName, String mobile,
			int pageNo, int pageSize, CmsUser user);

	public Pagination getPage(String userName, String phoneNo, int pageNo,
			int pageSize, CmsUser user);

	public UserAccount findById(Integer id);

	public UserAccount updateByUpdater(Updater<UserAccount> updater);

	public UserAccount save(UserAccount bean);

	public UserAccount deleteById(Integer id);

	public List<UserAccount> getListUserAccountByUserId(Integer userId);

	public List<UserAccount> getListUserAccountByVipLevel(Integer vipLevel);

	public List<UserAccount> getListUserAccountByScore(Integer beginScore,
			Integer endScore);

	public void batchUpdateVipLevel(Integer beginScore, Integer endScore,
			String vipLevel);

	public List<UserAccount> getListUserAccountByIds(String ids);

	public void batchUpdateVipLevel(String ids, String vipLevel);
}